﻿@model BlogAppExt.Models.PostDetailVM

<h3>Edit Post</h3>

<div class="row">

    <form class="form-group" method="post">
        <h6>@Model.User.NameFirst @Model.User.NameLast</h6>
        <input class="form-control" name="title" value="@Model.Post.Title" placeholder="Title" />
        <textarea class="form-control" rows="10" name="text">@Model.Post.Text</textarea>
        <input hidden name="postId" value="@Model.Post.Id" />
        <input class="btn btn-success form-control" type="submit" value="Save Changes" />
    </form>
    <form class="form-group" method="post" action="/Home/DeletePost">
        <input hidden name="postId" value="@Model.Post.Id" />
        <input class="btn btn-danger form-control" type="submit" value="Delete Post" />
    </form>
</div>

